#!/usr/bin/env gnuplot
#绘制串口接收的数据

set xlabel "时间"
set ylabel "随机数据"
set title "随机数据显示"
set key
set grid

#plot \
#    "m.dat" \
#    using 1 w lp pt 5 title "速度",\
#    "m.dat" \
#    using 2 w lp pt 7 title "输出"

plot \
    "m.dat" using 1 w l title "速度",\
    "m.dat" using 2 w l title "输出",\
    "m.dat" using 3 w l title "C"

#pause -1
#quit
#pause 5 #等待4s
#refresh #刷新，重新绘制
#reread #读取数据显示
pause 100
#exit
